package com.app.model;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_subsidy_application_details")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SubsidyApplicationDetailsModel {
    @TableId(type = IdType.AUTO)
    private Integer id;  //
    private Integer subsidyApplicationId;  //补助申领表id
    private Integer subsidyState;  //补助的审核状态 1待人社局审核 2待银行审核 3人社局拒绝申请 4银行拒绝申请 5审核通过
    private String reason;  //拒绝原因

    private Integer personalInformationId;  //就业补贴用户详情（personal_information）表id
    private Integer enterpriseInformationId;  //就业补贴企业详情（enterprise_information）表id
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private LocalDateTime  crtTime;  //
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private LocalDateTime upTime;  //

    @TableField(exist = false)
    private PersonalInformationModel personalInformationModel;

    @TableField(exist = false)
    private EnterpriseInformationModel enterpriseInformationModel;


}
